//
//  CSNateOAuthViewController.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 22..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CSNateRequestDelegate.h"

@class CSNateRequest;
@class CSNateOAuthResult;
@protocol CSNateOAuthViewDelegate;

@interface CSNateOAuthViewController : UIViewController
	<UIWebViewDelegate,
	CSNateRequestDelegate>
{
	IBOutlet UIWebView* m_webView;
	IBOutlet UIActivityIndicatorView* m_progressIndicatorView;

	NSMutableDictionary* m_oauthParams;
	id<CSNateOAuthViewDelegate,NSObject> m_delegate;
	NSString* m_initialHTMLString;

	CSNateOAuthResult* m_oauthResult;
	CSNateRequest* m_nateRequest;

	NSInteger m_finalRequestToken;
}

@property (nonatomic,retain) NSString* initialHTMLString;

- (id)initWithConsumerKey:(NSString*)consumerKey
		andConsumerSecret:(NSString*)consumerSecret
			  andCallback:(NSString*)callback
			  andDelegate:(id<CSNateOAuthViewDelegate,NSObject>)delegate;

@end
